package com.seek.service.imp;

import com.seek.core.BaseServiceImpl;
import com.seek.dao.CustomerMobileBillDao;
import com.seek.model.entity.TCustomerMobileBill;
import com.seek.service.CustomerMobileBillService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created by weh on 2017/7/7.
 */
@Repository("customerMobileBillService")
public class CustomerMobileBillServiceImpl extends BaseServiceImpl<TCustomerMobileBill> implements
    CustomerMobileBillService {

  @Autowired
  public void setDao(CustomerMobileBillDao customerMobileBillDao) {
    super.setDao(customerMobileBillDao);
  }

  public CustomerMobileBillDao getDao() {
    return (CustomerMobileBillDao) super.getDao();
  }


  @Override
  public void saveBatch(List<TCustomerMobileBill> datas) throws Exception {
    if (datas == null || datas.size() < 1)
      return;
    for (TCustomerMobileBill en : datas){
      this.getDao().insert(en);
    }
  }
}
